Exception Handling in Logic Programming

نویسنده

  • Keehang Kwon
چکیده

One of the long-standing problems on logic programming is to express exception handling in a high-level way. We argue that this problem can be solved by adopting computability logic and sequential-choice disjunctive goal formulas of the form G0 ▽ G1 where G0, G1 are goals. These goals have the following intended semantics: sequentially choose the first true goal Gi and execute Gi where i(= 0 or 1). These goals thus allow us to specify a task G0 with the failure-handling (exception handling) routine G1. key words: Prolog, exception handling, failure handling, computability logic

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A logical interpretation of Java-style exceptions

This paper presents a novel, type-based exception analysis for EC (an Exception Calculus)—a higher-order, typed programming language with first-class, Java-style exceptions. EC exceptions are predeclared and are subject to a nominal subtyping relation. Every exception has its own type, and generic exception handling is performed by handling a supertype of all applicable exceptions. Typing is ba...

متن کامل

A Modal Calculus for Exception Handling

The exception monad, while an adequate mechanism for providing the denotational semantics of exceptions, is somewhat awkward to program with. Just as any other monad, it forces a programming style in which exceptional computations are explicitly sequentialized in the program text. In addition, values of computation types must usually be tested before use, in order to determine if they correspon...

متن کامل

Type safety for substructural specifications: preliminary results

Substructural logics, such as linear logic and ordered logic, have an inherent notion of state and state change. This makes them a natural choice for developing logical frameworks that specify evolving stateful systems. Our previous work has shown that the so-called forward reasoning fragment of ordered linear logic can be used to give clear, concise, and modular specifications of stateful and ...

متن کامل

Teaching Prolog Programming at the Eötvös Loránd University, Budapest

At the Eötvös Loránd University (Budapest) we have two courses on Prolog programming, especially for program designer (MsC) students. Our main objective is to help the students find the subproblems in their projects to be solved with Prolog, and enable them to write the necessary code. At first our main concern is to give clear notions. Next we focus on the technical details of writing small pr...

متن کامل

Axiomatic Semantics for Java in Isabelle/HOL

We introduce a Hoare-style calculus for a nearly full subset of sequential Java, which we call Java. In particular, we present solutions to challenging features like exception handling, static initialization of classes and dynamic binding of methods. This axiomatic semantics has been proved sound and complete w.r.t. pour operational semantics of Java, described in earlier papers. To our knowled...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/1607.00633  شماره 

صفحات  -

تاریخ انتشار 2016